import axios from 'axios'
import { MEAL } from '../const.js'

export default {
    getAllMeal(params) {
        return axios({
            url: MEAL + '/getAllMeal',
            method: "GET",
            params
        })
    },
    updateMeal(data) {
        return axios({
            url: MEAL + '/updateMeal',
            method: 'POST',
            data
        })
    },
    addMeal(data) {
        return axios({
            url: MEAL + '/addMeal',
            method: 'POST',
            data
        })
    },
    delMeal(data) {
        return axios({
            url: MEAL + '/delMeal',
            method: 'POST',
            data
        })
    }
}
